#pragma once

// ==============================================================================
//  运行时数据管理类
// ------------------------------------------------------------------------------

#include <unordered_map>
#include "../share/Singleton.h"


class RuntimeData
{
public:
	//---------------------------------------------------------------------------
	RuntimeData();
	//---------------------------------------------------------------------------
	~RuntimeData();

public:
	//---------------------------------------------------------------------------
	void updateRankListCountAtRuntime(uint32_t type, uint32_t count);
	//---------------------------------------------------------------------------
	uint32_t getRankRankListCountAtRuntime(uint32_t type);

public:
	std::unordered_map<uint32_t, uint32_t> m_mapRuntimeData;//k:type
};

using RunTimeMgr = Singleton<RuntimeData>;
#define RunTimeMgrPtr RunTimeMgr::GetInstance()